import React from 'react';
const List =(props) => {
  const list = props.listItems.map((el, i) => {
    return (<li key={i}><h2>{el}</h2></li>)
  });
  return (
    <ul>
      {
        list
      }
    </ul>
  )
}
export default List;